package com.yunxi.bizToBaseData.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class VehiclePriceReqVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String priceId;

    @ApiModelProperty(value = "价格代码")
    private String priceCode;

    @ApiModelProperty(value = "价格名称")
    private String priceName;

    @ApiModelProperty(value = "价格类型CODE")
    private String priceTypeCode;

    @ApiModelProperty(value = "价格类型名称")
    private String priceTypeName;

    @ApiModelProperty(value = "销售公司")
    private String companyCode;

    @ApiModelProperty(value = "产品ID")
    private String productCode;

    @ApiModelProperty(value = "电池包")
    private String batteryPackCode;
    private String batteryPackName;

    @ApiModelProperty(value = "选装包")
    private String customPackCode;
    private String customPackName;

    @ApiModelProperty(value = "状态1启用0禁用")
    private Integer status;

    @ApiModelProperty(value = "0百分比1固定值")
    private Integer unitType;

    public void setUnitType(Integer unitType) {
        this.unitType = unitType;
        if(unitType!=null&&unitType==1) {
            this.unitTypeCn = "固定值";
        }else{
            this.unitTypeCn = "百分比";
        }
    }

    private String unitTypeCn;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "国家")
    private String counrty;

    @ApiModelProperty(value = "审核状态")
    private Integer checkStatus;

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
        if(checkStatus!=null&&unitType==1) {
            this.checkStatusCn = "已审核";
        }else{
            this.checkStatusCn = "未审核";
        }
    }

    private String checkStatusCn;

    @ApiModelProperty(value = "特征值")
    private String featureCode;

    @ApiModelProperty(value = "特征名称")
    private String featureName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "生效日期")
    private String effectDate;

    @ApiModelProperty(value = "失效时间")
    private String valiDate;

    @ApiModelProperty(value = "当前时间")
    private String currDate;

    @ApiModelProperty(value = "0价格1折扣2返利")
    private Integer type;

    @ApiModelProperty(value = "提货方式")
    private String deliveryType;
    private String deliveryTypeCn;
    @ApiModelProperty(value = "订单类型")
    private String orderType;
    private String orderTypeCn;
    @ApiModelProperty(value = "结算方式")
    private String balanceType;
    private String  balanceTypeCn;
    @ApiModelProperty(value = "订货编号")
    private String orderVehicleNos;
    @ApiModelProperty(value = "大类中文")
    private String typeCn;

    public void setType(Integer type) {
        this.type = type;
        if(type!=null){
            if(type==0) typeCn = "价格大类";
            if(type==1) typeCn = "折扣大类";
            if(type==2) typeCn = "返利大类";
        }
    }

    private String num_;
}
